#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>

using namespace std;
#include"vector.h"
#include"list.h"
#include"reverse_iterator.h"

void test_vector()
{
	lh::vector<int>V;
	V.push_back(1);
	V.push_back(2);
	V.push_back(3);
	V.push_back(4);
	V.push_back(5);
	lh::vector<int>::reverse_iterator it = V.rbegin();
	while (it != V.rend())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;
}

void test_list()
{
	lh::list<int>lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);
	lh::list<int>::reverse_iterator it = lt.rbegin();
	while (it != lt.rend())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;
}

int main()
{
	test_vector();
	test_list();
	return 0;
}